use stdint types for sized data types
authorØyvind Kolås <pippin@gimp.org>
Wed, 2 May 2012 00:27:19 +0000 (02:27 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 2 May 2012 00:27:19 +0000 (02:27 +0200)
babl/base/type-half.c

index 987b88f66eef18e40448be47999e2461cb2ff7d0..798b7dd142d2102f61ac9862c77b494d70ce17cc 100644 (file)
@@ -61,6 +61,7 @@
 #include "config.h"
 #include <string.h>
 #include <assert.h>
+#include <stdint.h>
 
 #include "babl.h"
 #include "babl-classes.h"
 
 
 #define  mwSize              int
-#define  INT16_TYPE          short
-#define UINT16_TYPE unsigned short
-#define  INT32_TYPE          long
-#define UINT32_TYPE unsigned long
+#define  INT16_TYPE          int16_t
+#define UINT16_TYPE          uint16_t
+#define  INT32_TYPE          int32_t
+#define UINT32_TYPE          uint32_t
 
 static int next = 1; /* should be 0 for big endian */